mm/mmap: Fix VM_LOCKED check in do_vmi_align_munmap()
authorSuren Baghdasaryan <surenb@google.com>
Tue, 11 Jul 2023 00:46:32 +0000 (17:46 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 14 Jul 2023 03:46:44 +0000 (04:46 +0100)
commit2f923427ceb9df4420e20e7b2044a72410be08ac
tree1af983f2c60d5c156a2423ed661c21bdae276d7c
parent81ea3b519011678160ace3e8de90cf2e917f5afb
mm/mmap: Fix VM_LOCKED check in do_vmi_align_munmap()

Origin: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.1/mm-mmap-fix-vm_locked-check-in-do_vmi_align_munmap.patch

6.1 backport of the patch [1] uses 'next' vma instead of 'split' vma.
Fix the mistake.

[1] commit 606c812eb1d5 ("mm/mmap: Fix error path in do_vmi_align_munmap()")

Fixes: a149174ff8bb ("mm/mmap: Fix error path in do_vmi_align_munmap()")
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name mm-mmap-fix-vm_locked-check-in-do_vmi_align_munmap.patch
mm/mmap.c